package com.jiepu.daily.corejava.advanceed.part6thread;

/**
 * @Description:
 * @author: xinjie.txt
 * @date: 2020/7/31  18:19
 */
public class Singleton4 {
	private int id;

	private Singleton4() {
	}

	static class SingletonHolder {
		static Singleton4 instance = new Singleton4();
	}

	public Singleton4 getInstance() {
		return SingletonHolder.instance;
	}

}
